﻿<Controls:SinacorWindow 
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:d="http://schemas.microsoft.com/expression/blend/2008"  
          xmlns:Custom="http://schemas.xceed.com/wpf/xaml/datagrid"
          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
          mc:Ignorable="d"
          xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls"
          WindowStartupLocation="CenterScreen" 
          AutoContentHeight="True" 
          AutoContentWidth="True"
          WindowState="Maximized"
          Title="{DynamicResource Bovespa.Alocacao.Label.MonitorAlocacao}" 
          x:Class="Sinacor.UI.Bovespa.Alocacao.View.SmartClient.MonitorAlocacao" 
          ModulePlus="False"
          ModuleId="ORD">

    <Controls:SinacorTabControl x:Name="TabMain"
                                IsSynchronizedWithCurrentItem="True">

        <!-- Monitor Alocação [ABA 1] -->
        <Controls:SinacorTabItem x:Name="TbiMonitorAlocacao"
                                 Header="{DynamicResource Bovespa.Alocacao.Label.MensagensAlocacao}"
                                 IsTabStop="False">
            <Grid>
                <Controls:SinacorExpanderContainer HorizontalAlignment="Stretch" 
											       VerticalAlignment="Stretch" 
											       Grid.Row="0" Grid.ColumnSpan="2">
                    <Controls:SinacorExpanderContainer.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                    </Controls:SinacorExpanderContainer.RowDefinitions>

                    <Controls:SinacorExpander x:Name="GrdPesquisa"
                                              Header="{DynamicResource Bovespa.Alocacao.Label.Pesquisa}"
											  Grid.Row="0">
                        <Grid>
                            <Controls:SinacorLabel x:Name="LblPregao"
                                                   HorizontalAlignment="Left" 
												   VerticalAlignment="Top" 
                                                   HorizontalContentAlignment="Left"
												   Content="{DynamicResource Bovespa.Alocacao.Label.Pregao}" 
												   Width="65"/>
                            <Controls:SinacorComboBox x:Name="cmbPregao"
                                                      DisplayMemberPath="DataPregao"
                                                      SelectedValuePath="DataPregao"                                                      
                                                      SelectedValue="{Binding Path=FiltroMonitorAlocacao.DataPregao}"
                                                      ItemsSource="{Binding ListaCalendarios}"
                                                      IsRequired="True"
                                                      ItemStringFormat="d"
													  HorizontalAlignment="Left" 
													  VerticalAlignment="Top" 
													  Margin="0,21,0,0" 
													  Width="113"
                                                      TabIndex="1"/>
                            <Controls:SinacorLabel x:Name="LblAtivo"
                                                   HorizontalAlignment="Left"
                                                   VerticalAlignment="Top" 
												   HorizontalContentAlignment="Left"
                                                   Content="{DynamicResource Bovespa.Alocacao.Label.Ativo}" 
												   Margin="117,0,0,0" 
												   Width="55"/>
                            <Controls:SinacorTextBox Name="TxtAtivo"
                                                     VerticalAlignment="Top" 
                                                     HorizontalAlignment="Left"
                                                     Text="{Binding FiltroMonitorAlocacao.Ativo}"
                                                     MaxLength="12"
													 Margin="117,21,0,0"                                                     
													 TabIndex="2"													  
													 Width="135"/>
                            <Controls:SinacorButton x:Name="BtnPesquisarAtivo"
                                                    HorizontalAlignment="Left" 
                                                    VerticalAlignment="Top"
                                                    Icon="IconButtonSearch"
								                    Margin="256,21,0,0" 
								                    TabIndex="3"
                                                    ToolTip="{DynamicResource Bovespa.Alocacao.Label.PesquisarAtivo}"
                                                    Click="BtnPesquisarAtivo_Click"/>
                            <Controls:SinacorLabel x:Name="LblMercado"
                                                   HorizontalAlignment="Left" 
                                                   HorizontalContentAlignment="Left"
                                                   Width="72"
                                                   Content="{DynamicResource Bovespa.Alocacao.Label.Mercado}" 
												   Margin="282,0,0,0" />
                            <Controls:SinacorComboBox x:Name="CmbMercado"
                                                      HorizontalAlignment="Left" 
													  VerticalAlignment="Top" 
                                                      SelectedValue="{Binding Path=FiltroMonitorAlocacao.Mercado}"
                                                      ItemsSource="{Binding ListaTiposMercado}"										  
													  Margin="282,21,0,0" 
													  Width="202"
                                                      TabIndex="4"/>
                            <Controls:SinacorLabel x:Name="LblTimer"
                                                   HorizontalAlignment="Left" 
                                                   HorizontalContentAlignment="Left"
												   Content="{DynamicResource Bovespa.Alocacao.Label.Timer}" 
												   Margin="488,0,0,0" 
												   Width="60"/>
                            <Controls:SinacorInt16TextBox x:Name="TxtTimer"
                                                          HorizontalAlignment="Left" 
														  VerticalAlignment="Top" 
                                                          Value="{Binding FiltroMonitorAlocacao.TempoExecucao}"
                                                          Integers="3" 
														  IsFormated="False"
														  Margin="488,21,0,0" 
														  Width="35"
                                                          TabIndex="5"/>
                            <Controls:SinacorLabel x:Name="LblEnvioAutomaticoMins"
                                                   Content="{DynamicResource Bovespa.Alocacao.Label.EnvioAutomaticoMins}" 												    
												   HorizontalContentAlignment="Left" 
												   HorizontalAlignment="Left"
												   VerticalAlignment="Top"
                                                   Margin="527,21,0,0" 
												   Width="171"/>
                            <Controls:SinacorLabel x:Name="LblCliente"
                                                   HorizontalAlignment="Left" 
                                                   HorizontalContentAlignment="Left"												   
												   VerticalAlignment="Top" 
												   Content="{DynamicResource Bovespa.Alocacao.Label.Cliente}" 
                                                   Margin="0,53,0,0" 
												   Width="65" />
                            <Controls:SinacorTextBox x:Name="TxtCliente"
                                                     HorizontalAlignment="Left"
                                                     VerticalAlignment="Top" 
                                                     Text="{Binding FiltroMonitorAlocacao.ApelidoCliente}"
                                                     MaxLength="18"
													 Margin="0,74,0,0" 
                                                     Width="227" 
													 TabIndex="6"/>
                            <Controls:SinacorButton x:Name="BtnPesquisarCliente"
                                                    HorizontalAlignment="Left" 
                                                    VerticalAlignment="Top"
                                                    Icon="IconButtonClient" 
													ToolTip="{DynamicResource Bovespa.Alocacao.Label.PesquisarCliente}"
													Margin="231,74,0,0"
                                                    TabIndex="7"
                                                    Click="BtnPesquisarCliente_Click"/>
                            <Controls:SinacorLabel x:Name="LblNNegocio"
                                                   HorizontalAlignment="Left" 
                                                   HorizontalContentAlignment="Left"
												   Content="{DynamicResource Bovespa.Alocacao.Label.NNegocio}" 
												   Margin="257,53,0,0" 
												   Width="80" />
                            <Controls:SinacorInt32TextBox x:Name="TxtNumNegocio"
                                                          HorizontalAlignment="Left" 
														  VerticalAlignment="Top"
                                                          Value="{Binding FiltroMonitorAlocacao.NumeroNegocio}"
                                                          Integers="9"
                                                          IsFormated="True"
														  TabIndex="8" 
														  Margin="257,74,0,0" 
														  Width="75" />
                            <Controls:SinacorGroupBox x:Name="GrpNaturezaDaOperacao"
                                                      HorizontalAlignment="Left" 
													  VerticalAlignment="Top" 
													  Header="{DynamicResource Bovespa.Alocacao.Label.NaturezaDaOperacao}" 
													  Margin="336,44,0,0" 
													  Height="51" 
													  Width="328">
                                <Grid HorizontalAlignment="Left" 
									  VerticalAlignment="Top">
                                    <Controls:SinacorRadioButton x:Name="RdbCompraVenda"
                                                                 HorizontalAlignment="Left" 
                            			                         VerticalAlignment="Top"                             			 
                            			                         Content="{DynamicResource Bovespa.Alocacao.Label.CompraVenda}"
                            			                         GroupName="CompraVendaMonitorAlocacao" 
                            			                         Width="132"
                                                                 TabIndex="9"
                                                                 Checked="RdbCompraVenda_Checked"/>
                                    <Controls:SinacorRadioButton x:Name="RdbCompra"
                                                                 HorizontalAlignment="Left" 
                            			                         VerticalAlignment="Top" 
                                                                 Content="{DynamicResource Bovespa.Alocacao.Label.Compra}" 
                            			                         GroupName="CompraVendaMonitorAlocacao"                            			 
                            			                         Margin="136,0,0,0"
                                                                 Width="89"
                                                                 TabIndex="10"
                                                                 Checked="RdbCompra_Checked"/>
                                    <Controls:SinacorRadioButton x:Name="RdbVenda"
                                                                 HorizontalAlignment="Left" 
                            			                         VerticalAlignment="Top"
                            			                         Content="{DynamicResource Bovespa.Alocacao.Label.Venda}" 
                            			                         GroupName="CompraVendaMonitorAlocacao"
                                                                 Margin="229,0,0,0"
                                                                 Width="81"
                                                                 TabIndex="11"
                                                                 Checked="RdbVenda_Checked"/>
                                </Grid>
                            </Controls:SinacorGroupBox>
                            <Controls:SinacorButton x:Name="BtnPesquisarMonitorAlocacao"                                                    
                                                    HorizontalAlignment="Left" 
												    VerticalAlignment="Top" 
													Content="{DynamicResource Bovespa.Alocacao.Label.Pesquisar}" 
													Margin="668,74,0,0" 
													Width="100" 
													TabIndex="12" 
													IsDefault="True"
                                                    Click="BtnPesquisarMonitorAlocacao_Click"/>
                            <Controls:SinacorButton x:Name="BtnNovaPesquisaMonitorAlocacao"                                                    
                                                    HorizontalAlignment="Left" 
													VerticalAlignment="Top" 
													Content="{DynamicResource Bovespa.Alocacao.Label.NovaPesquisa}" 
													Margin="772,74,0,0" 
													Width="106" 
													TabIndex="13"
                                                    Click="BtnNovaPesquisaMonitorAlocacao_Click"/>

                        </Grid>
                    </Controls:SinacorExpander>

                    <Grid Grid.Row="1">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="2.3*"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <Controls:SinacorExpander x:Name="ExpMonitorMensagens"
                                                  HorizontalAlignment="Stretch"
											      VerticalAlignment="Stretch" 
											      Header="{DynamicResource Bovespa.Alocacao.Label.Mensagens}"
                                                  Margin="0,4,0,0" 
											      AllowExpand="False"
											      Grid.Column="0">
                            <Grid>
                                <Controls:SinacorDataGrid x:Name="DtgMensagens"
                                                          HorizontalAlignment="Stretch" 		
                      		                              VerticalAlignment="Stretch"                                                          
                                                          AllowDelete="False"                                                          
                                      	                  RowEditMode="AllCells" 
                                                          ItemsSource="{Binding ListaMensagensAlocacao}"
                                                          TabIndex="14"
                                                          BufferedSelectionChanged="DtgMensagens_BufferedSelectionChanged"
                                                          ApplyingStyle="DtgMensagens_ApplyingStyle">
                                    <Controls:SinacorDataGrid.ContextMenuTemplate>
                                        <DataTemplate>
                                            <StackPanel>
                                                <Controls:SinacorContextMenuItem x:Name="menuEnviar" Header="{DynamicResource Bovespa.Alocacao.Label.EnviarMensagensAlocacoes}" Loaded="menuEnviar_Loaded" Click="menuEnviar_Click" />
                                                <Controls:SinacorContextMenuItem x:Name="menuInterromper" IsEnabled="False" Header="{DynamicResource Bovespa.Alocacao.Label.InterromperEnvioMensagensAlocacoes}" Loaded="menuInterromper_Loaded" Click="menuInterromper_Click" />
                                                <Controls:SinacorContextMenuItem x:Name="menuReenviar" IsEnabled="False" Header="{DynamicResource Bovespa.Alocacao.Label.ReenviaMensagensSelecionadas}" Loaded="menuReenviar_Loaded" Click="menuReenviar_Click" />
                                                <Controls:SinacorContextMenuItem x:Name="menuTratar" IsEnabled="False" Header="{DynamicResource Bovespa.Alocacao.Label.TratarFalhas}" Loaded="menuTratar_Loaded" Click="menuTratar_Click" />
                                            </StackPanel>
                                        </DataTemplate>
                                    </Controls:SinacorDataGrid.ContextMenuTemplate>

                                    <Controls:SinacorDataGrid.Columns>

                                        <Controls:Column Name="Ativo"
                                                         Title="Bovespa.Alocacao.Label.Ativo"
                                                         DisplayMemberPath="Ativo"
                                                         AllowGroup="True"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"/>
                                        <Controls:Column Name="Bolsa"
	                                                     Title="Bovespa.Alocacao.Label.Bolsa"
                                                         DisplayMemberPath="Bolsa.Codigo"
                                                         AllowGroup="True"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"/>
                                        <Controls:Column Name="DataEnvio"
	                                                     Title="Bovespa.Alocacao.Label.DataEnvio"
                                                         DisplayMemberPath="DataEnvio"
                                                         AllowGroup="True"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"
                                                         HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="DataPregao"
	                                                     Title="Bovespa.Alocacao.Label.DataPregao"
                                                         DisplayMemberPath="DataPregao"
                                                         AllowGroup="True"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"
                                                         HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="DescricaoErro"
	                                                     Title="Bovespa.Alocacao.Label.DescricaoErro"
                                                         DisplayMemberPath="DescricaoErro"
                                                         AllowGroup="True"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"/>
                                        <Controls:Column Name="InformacoesRetorno"
	                                                     Title="Bovespa.Alocacao.Label.InformacoesRetorno"
                                                         DisplayMemberPath="InformacoesRetorno"
                                                         AllowGroup="True"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"/>
                                        <Controls:Column Name="NatOperacao"
                                                         Title="Bovespa.Alocacao.Label.NatOperacao"
                                                         DisplayMemberPath="NaturezaOperacao"
                                                         AllowGroup="True"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"/>
                                        <Controls:Column Name="NNegocio"
	                                                     Title="Bovespa.Alocacao.Label.NNegocio"
                                                         DisplayMemberPath="NumeroNegocio"
                                                         AllowGroup="True"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"
                                                         HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="OperTGP"
	                                                     Title="Bovespa.Alocacao.Label.OperTGP"
                                                         DisplayMemberPath="CodigoOperadorTGP"
                                                         AllowGroup="True"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"/>
                                        <Controls:Column Name="QuantNegocio"
                                                         Title="Bovespa.Alocacao.Label.QuantNegocio"
                                                         DisplayMemberPath="QuantidadeNegocio"
                                                         AllowGroup="True"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"
                                                         HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="QuantTotalAloc"
	                                                     Title="Bovespa.Alocacao.Label.QuantTotalAloc"
                                                         DisplayMemberPath="QuantidadeTotalAlocada"
                                                         AllowGroup="True"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"
                                                         HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="SeqTGP"
	                                                     Title="Bovespa.Alocacao.Label.SeqTGP"
                                                         DisplayMemberPath="SequenciaFilaTGP"
                                                         AllowGroup="True"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"
                                                         HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="Sequencia"
	                                                     Title="Bovespa.Alocacao.Label.Sequencia"
                                                         DisplayMemberPath="Sequencia"
                                                         AllowGroup="True"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"
                                                         HorizontalCellAlignment="Right"/>

                                    </Controls:SinacorDataGrid.Columns>
                                </Controls:SinacorDataGrid>

                            </Grid>
                        </Controls:SinacorExpander>
                        <Controls:SinacorGroupBox x:Name="GrbOpcoesVisualizacao"
                                                  HorizontalAlignment="Stretch" 
											      VerticalAlignment="Stretch" 
                                                  Width="Auto" 
											      Height="Auto"
											      Header="{DynamicResource Bovespa.Alocacao.Label.OpcoesVisualizacao}" 
											      Grid.Column="1" 
											      Margin="4,0,0,0">
                            <Grid>
                                <Controls:SinacorRadioButton x:Name="RdbTodasMensagens"
                                                             HorizontalAlignment="Left" 
													         VerticalAlignment="Top" 													  
													         Content="{DynamicResource Bovespa.Alocacao.Label.TodasMensagens}" 
													         Width="210"
													         GroupName="Visualizar" 
													         Foreground="{DynamicResource BrushGridRowBusiness07}"
                                                             TabIndex="15"
                                                             Checked="RdbTodasMensagens_Checked"/>
                                <Controls:SinacorInt32TextBox x:Name="TxtTodasMensagens"
                                                              HorizontalAlignment="Left" 
													          VerticalAlignment="Top" 
													          Margin="214,0,0,0" 
													          Width="65" 
													          Integers="7" 
													          IsEnabled="False"
                                                              TabIndex="16"
                                                              Value="{Binding Totalizador.TodasMensagens}"/>
                                <Controls:SinacorRadioButton x:Name="RdbMensagensGeradas"
                                                             HorizontalAlignment="Left" 
													         VerticalAlignment="Top" 													  
													         Content="{DynamicResource Bovespa.Alocacao.Label.MensagensGeradas}" 
													         Margin="0,25,0,0" 
													         Width="210" 
												 	         GroupName="Visualizar"
													         Foreground="{DynamicResource BrushGridRowBusiness01}"
                                                             TabIndex="17"
                                                             Checked="RdbMensagensGeradas_Checked"/>
                                <Controls:SinacorInt32TextBox x:Name="TxtMensagensGeradas"
                                                              HorizontalAlignment="Left" 
                                                              VerticalAlignment="Top" 
                                                              TabIndex="18" 
													          Margin="214,25,0,0" 
													          Width="65" 
													          Integers="7" 
													          IsEnabled="False"
                                                              Value="{Binding Totalizador.Geradas}"/>
                                <Controls:SinacorRadioButton x:Name="RdbMensagensFilaEnvio"
                                                             HorizontalAlignment="Left" 
													         VerticalAlignment="Top" 
													         TabIndex="19" 
													         Content="{DynamicResource Bovespa.Alocacao.Label.MensagensFilaEnvio}" 
													         Margin="0,50,0,0" 
													         Width="210" 
													         GroupName="Visualizar"
													         Foreground="{DynamicResource BrushGridRowBusiness03}"
                                                             Checked="RdbMensagensFilaEnvio_Checked"/>
                                <Controls:SinacorInt32TextBox x:Name="TxtMensagensFilaEnvio"
                                                              HorizontalAlignment="Left" 
													          VerticalAlignment="Top" 
													          TabIndex="20" 
													          TextWrapping="NoWrap" 
													          Margin="214,50,0,0" 
													          Width="65" 
													          Integers="7" 
													          IsEnabled="False"
                                                              Value="{Binding Totalizador.FilaEnvio}"/>
                                <Controls:SinacorRadioButton x:Name="RdbMensagensInvalidadas"
                                                             HorizontalAlignment="Left" 
													         VerticalAlignment="Top" 
													         TabIndex="21" 
													         Content="{DynamicResource Bovespa.Alocacao.Label.MensagensInvalidadas}" 
													         Width="210" 
													         Margin="0,75,0,0" 
													         GroupName="Visualizar"
													         Foreground="{DynamicResource BrushGridRowBusiness09}"
                                                             Checked="RdbMensagensInvalidadas_Checked"/>
                                <Controls:SinacorInt32TextBox x:Name="TxtMensagensInvalidadas"
                                                              HorizontalAlignment="Left" 
													          VerticalAlignment="Top" 
													          TabIndex="22" 
													          Margin="214,75,0,0" 
													          Width="65" 
													          Integers="7" 
													          IsEnabled="False"
                                                              Value="{Binding Totalizador.Invalidadas}"/>
                                <Controls:SinacorRadioButton x:Name="RdbMensagensProcessandoRetorno"
                                                             HorizontalAlignment="Left" 
													         VerticalAlignment="Top" 
													         TabIndex="23" 
													         Content="{DynamicResource Bovespa.Alocacao.Label.MensagensProcessandoRetorno}" 
													         Width="209" 
													         Margin="0,100,0,0" 
													         GroupName="Visualizar"													 
													         Foreground="{DynamicResource BrushGridRowBusiness04}"
                                                             Checked="RdbMensagensProcessandoRetorno_Checked"/>
                                <Controls:SinacorInt32TextBox x:Name="TxtMensagensProcessandoRetorno"
                                                              HorizontalAlignment="Left" 
													          VerticalAlignment="Top" 
													          TabIndex="24" 
													          Margin="214,100,0,0" 
													          Width="65" 
													          Integers="7" 
													          IsEnabled="False"
                                                              Value="{Binding Totalizador.ProcessandoRetorno}"/>
                                <Rectangle Margin="0,127,0,0" 
								           Fill="#FF919191" 
								           Stroke="{x:Null}" 
								           VerticalAlignment="Top" 
								           HorizontalAlignment="Stretch" 
								           Height="1"/>
                                <Controls:SinacorRadioButton x:Name="RdbMensagensAceitas"
                                                             HorizontalAlignment="Left" 
													         VerticalAlignment="Top" 
													         TabIndex="25" 
													         Content="{DynamicResource Bovespa.Alocacao.Label.MensagensAceitas}" 
													         Margin="0,135,0,0" 
													         Width="210" 
													         GroupName="Visualizar"
													         Foreground="{DynamicResource BrushGridRowBusiness02}"
                                                             Checked="RdbMensagensAceitas_Checked"/>
                                <Controls:SinacorInt32TextBox x:Name="TxtMensagensAceitas"
                                                              HorizontalAlignment="Left" 
													          VerticalAlignment="Top" 
													          TabIndex="24" 
													          Margin="214,135,0,0" 
													          Width="65" 
													          Integers="7" 
													          IsEnabled="False"
                                                              Value="{Binding Totalizador.Aceitas}"/>
                                <Controls:SinacorRadioButton x:Name="RdbMensagensFalhas"
                                                             Margin="0,160,0,0"
												             VerticalAlignment="Top" 
													         Width="210" 
													         TabIndex="25" 
													         Content="{DynamicResource Bovespa.Alocacao.Label.MensagensFalhas}" 
													         HorizontalAlignment="Left" 
													         GroupName="Visualizar"
													         Foreground="{DynamicResource BrushGridRowBusiness06}"
                                                             Checked="RdbMensagensFalhas_Checked"/>
                                <Controls:SinacorInt32TextBox x:Name="TxtMensagensFalhas"
                                                              HorizontalAlignment="Left" 
													          VerticalAlignment="Top" 
													          TabIndex="26" 
													          Margin="214,160,0,0" 
													          Width="65" 
													          Integers="7" 
													          IsEnabled="False"
                                                              Value="{Binding Totalizador.Falhas}"/>
                                <Controls:SinacorRadioButton x:Name="RdbMensagensFalhasTratadas"
                                                             HorizontalAlignment="Left" 
												             VerticalAlignment="Top" 
												             TabIndex="27" 
												             Content="{DynamicResource Bovespa.Alocacao.Label.MensagensFalhasTratadas}" 
												             Width="210" 
												             Margin="0,185,0,0" 
												             GroupName="Visualizar"
												             Foreground="{DynamicResource BrushGridRowBusiness10}"
                                                             Checked="RdbMensagensFalhasTratadas_Checked"/>
                                <Controls:SinacorInt32TextBox x:Name="TxtMensagensFalhasTratadas"
                                                              HorizontalAlignment="Left" 
													          VerticalAlignment="Top" 
													          TabIndex="28" 
													          Margin="214,185,0,0" 
													          Width="65" 
													          Integers="7" 
													          IsEnabled="False"
                                                              Value="{Binding Totalizador.FalhasTratadas}"/>
                                <Rectangle Margin="0,215,0,0" 
								           Fill="#FF919191" 
								           Stroke="{x:Null}" 
								           VerticalAlignment="Top" 
								           HorizontalAlignment="Stretch" 
								           Height="1"/>
                                <Controls:SinacorCheckBox x:Name="RdbNaoEnviaAlocacao"
                                                          VerticalAlignment="Top" 
										                  TabIndex="29" 
										                  Margin="0,221,0,0" 
										                  Width="277" 
										                  Height="35" 
										                  IsChecked="True">
                                    <Grid Margin="0,-4,0,0" Height="30">
                                        <Controls:SinacorTextBlock HorizontalAlignment="Left" 
														           VerticalAlignment="Top" 
														           Text="{DynamicResource Bovespa.Alocacao.Label.NaoEnviaAlocacaoOrdemDiscricionaria}" 
														           TextWrapping="Wrap" 
														           Width="250" 
														           Margin="0,-1,0,0" 
														           Height="30"/>
                                    </Grid>
                                </Controls:SinacorCheckBox>
                            </Grid>
                        </Controls:SinacorGroupBox>
                    </Grid>

                    <Grid Grid.Row="2">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>

                        <Controls:SinacorExpander HorizontalAlignment="Stretch" 
											  VerticalAlignment="Stretch" 
											  Header="{DynamicResource Bovespa.Alocacao.Label.Alocacao}" 
											  Margin="0,4,0,0" 
											  AllowExpand="False" 
											  IsExpanded="True" 
											  Grid.Column="0">
                            <Grid>
                                <Controls:SinacorDataGrid x:Name="DtgAlocacao"
                                                          ItemsSource="{Binding ListaMensagensAlocacaoRealizada}"
                                                          HorizontalAlignment="Stretch" 		
								                          VerticalAlignment="Stretch" 		
								                          IsSynchronizedWithCurrentItem="True" 
                                                          AllowDelete="False"                                                          
								                          RowEditMode="AllCells">
                                    <Controls:SinacorDataGrid.Columns>

                                        <Controls:Column Name="Carteira"
												         Title="Bovespa.Alocacao.Label.Carteira"
                                                         DisplayMemberPath="Carteira"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"
                                                         HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="Cliente"
													     Title="Bovespa.Alocacao.Label.Cliente"
                                                         DisplayMemberPath="Cliente"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"/>
                                        <Controls:Column Name="ClienteInstit"
													     Title="Bovespa.Alocacao.Label.ClienteInstit"
                                                         DisplayMemberPath="ClienteInstitucional"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"/>
                                        <Controls:Column Name="DVCliente"
													     Title="Bovespa.Alocacao.Label.DVCliente"
                                                         DisplayMemberPath="DigitoCliente"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"
                                                         HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="DVClienteInstit"
													     Title="Bovespa.Alocacao.Label.DVClienteInstit"
                                                         DisplayMemberPath="DigitoClienteInstitucional"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"
                                                         HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="DVUsuarioInstit"
													     Title="Bovespa.Alocacao.Label.DVUsuarioInstit"
                                                         DisplayMemberPath="DigitoUsuarioInstitucional"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"
                                                         HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="Quantidade"
													     Title="Bovespa.Alocacao.Label.Quantidade"
                                                         DisplayMemberPath="Quantidade"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"
                                                         HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="UsuarioInstit"
													     Title="Bovespa.Alocacao.Label.UsuarioInstit"
                                                         DisplayMemberPath="UsuarioInstitucional"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"/>

                                    </Controls:SinacorDataGrid.Columns>
                                </Controls:SinacorDataGrid>

                            </Grid>
                        </Controls:SinacorExpander>

                        <Controls:SinacorExpander HorizontalAlignment="Stretch" 
												  VerticalAlignment="Stretch" 
												  Header="{DynamicResource Bovespa.Alocacao.Label.Erros}" 
												  Margin="4,4,0,0" 
												  AllowExpand="False" 
												  IsExpanded="True" 
												  Grid.Column="1">
                            <Grid>
                                <Controls:SinacorDataGrid x:Name="DtgErrors"
                                                          ItemsSource="{Binding ListaErrosAlocacao}"
                                                          HorizontalAlignment="Stretch" 		
													      VerticalAlignment="Stretch" 		
													      IsSynchronizedWithCurrentItem="True" 
                                                          AllowDelete="False"
													      RowEditMode="AllCells">
                                    <Controls:SinacorDataGrid.Columns>
                                        <Controls:Column Name="Erro"
													     Title="Bovespa.Alocacao.Label.Erro"
                                                         DisplayMemberPath="CodigoErro"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"/>
                                        <Controls:Column Name="Descricao"
													     Title="Bovespa.Alocacao.Label.Descricao"
                                                         DisplayMemberPath="Descricao"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"/>
                                        <Controls:Column Name="Mensagem"
													     Title="Bovespa.Alocacao.Label.Mensagem"
                                                         DisplayMemberPath="NumeroMensagem"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"/>
                                        <Controls:Column Name="Operador"
													     Title="Bovespa.Alocacao.Label.Operador"
                                                         DisplayMemberPath="Operador"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"/>
                                        <Controls:Column Name="Tag"
													     Title="Bovespa.Alocacao.Label.Tag"
                                                         DisplayMemberPath="Tag"
                                                         AllowInsert="False"  
                                                         AllowUpdate="False"/>
                                    </Controls:SinacorDataGrid.Columns>
                                </Controls:SinacorDataGrid>

                            </Grid>
                        </Controls:SinacorExpander>
                    </Grid>
                </Controls:SinacorExpanderContainer>

            </Grid>
        </Controls:SinacorTabItem>

        <!-- Consulta Negocios Alocados Pendentes Alocação [ABA 2] -->
        <Controls:SinacorTabItem x:Name="TbiConsultaNegociosAlocadosPendentesAlocacao"
                                 Header="{DynamicResource Bovespa.Alocacao.Label.ConsultaNegociosAlocadosPendentesAlocacao}" 
								 IsTabStop="False">
            <Grid>
                <Controls:SinacorExpanderContainer HorizontalAlignment="Stretch" 
											       VerticalAlignment="Stretch" 
											       Grid.Row="0">
                    <Controls:SinacorExpanderContainer.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="30" />
                    </Controls:SinacorExpanderContainer.RowDefinitions>
                    <Controls:SinacorExpanderContainer.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="330" />
                    </Controls:SinacorExpanderContainer.ColumnDefinitions>

                    <Controls:SinacorExpander x:Name="ExpPesquisa"
                                              HorizontalAlignment="Stretch"
											  VerticalAlignment="Stretch" 
											  Width="Auto" 
											  Header="{DynamicResource Bovespa.Alocacao.Label.Pesquisa}" 
											  IsExpanded="True" 
											  Grid.Row="0"
											  Grid.ColumnSpan="2">
                        <Grid>
                            <Controls:SinacorLabel x:Name="lblPregao"
                                                   HorizontalAlignment="Left" 
												   VerticalAlignment="Top" 
												   Content="{DynamicResource Bovespa.Alocacao.Label.Pregao}" 
												   Width="65"/>
                            <Controls:SinacorComboBox x:Name="cmbPregaoNegocios"
													  HorizontalAlignment="Left" 
													  VerticalAlignment="Top" 
													  Margin="69,0,0,0" 
													  Width="95" 
													  TabIndex="1"
                                                      ItemStringFormat="d"
                                                      ItemsSource="{Binding ListaCalendarios}"
                                                      DisplayMemberPath="DataPregao"
                                                      SelectedValuePath="DataPregao"
                                                      IsRequired="True"
                                                      SelectedValue="{Binding Path=FiltroSolicitacao.DataPregao}"/>
                            <Controls:SinacorRadioButton x:Name="rdbNegociosAlocados"
                                                         HorizontalAlignment="Left"
														 VerticalAlignment="Top" 
														 Content="{DynamicResource Bovespa.Alocacao.Label.NegociosAlocados}" 
														 Margin="168,0,0,0" 
														 IsChecked="True" 
														 GroupName="tiponegocios" 
														 Width="140"
                                                         TabIndex="2"/>
                            <Controls:SinacorRadioButton x:Name="rdbNegociosPendentesAlocacao"
                                                         HorizontalAlignment="Left" 
														 VerticalAlignment="Top" 
														 Content="{DynamicResource Bovespa.Alocacao.Label.NegociosPendentesAlocacao}" 
														 Margin="312,0,0,0" 
														 GroupName="tiponegocios" 
														 Width="210" 
														 TabIndex="3"/>
                            <Controls:SinacorCheckBox x:Name="chkAtualizacao"
                                                      VerticalAlignment="Top" 
													  Content="{DynamicResource Bovespa.Alocacao.Label.AtualizarInformacoesCada5Segs}" 
													  Margin="526,0,0,0" 
													  Width="230" 
													  HorizontalAlignment="Left" 
													  TabIndex="4"
                                                      IsChecked="{Binding Path=MarcadoCheck, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}"
                                                      />
                            <Controls:SinacorButton x:Name="btnPesquisarNegociosAlocados"
                                                    HorizontalAlignment="Left" 
													VerticalAlignment="Top" 
													Content="{DynamicResource Bovespa.Alocacao.Label.Pesquisar}" 
													Margin="760,-0.35,0,0" 
													Width="75" 
													TabIndex="5" 
													IsDefault="True"
                                                    Click="btnPesquisarNegociosAlocados_Click"/>
                            <Controls:SinacorButton x:Name="btnNovaPesquisaNegociosAlocados"
                                                    HorizontalAlignment="Left" 
													VerticalAlignment="Top" 
													Content="{DynamicResource Bovespa.Alocacao.Label.NovaPesquisa}" 
													Margin="839,0,0,0" 
													Width="106" 
													TabIndex="6"
                                                    Click="btnNovaPesquisaNegociosAlocados_Click"/>
                        </Grid>
                    </Controls:SinacorExpander>

                    <Grid Grid.Row="1">
                        <Controls:SinacorExpander x:Name="ExpConsultaNegociosAlocadosCentralDepositaria"
                                                  HorizontalAlignment="Stretch" 
											      VerticalAlignment="Stretch" 
											      Header="{DynamicResource Bovespa.Alocacao.Label.ConsultaNegociosAlocadosCentralDepositaria}" 
											      Grid.Column="0" 
											      Margin="0,4,0,0" 
											      AllowExpand="False" 
											      IsExpanded="True">
                            <Grid>
                                <Controls:SinacorDataGrid x:Name="dtgNegocios"
                                                          HorizontalAlignment="Stretch" 		
                      		                              VerticalAlignment="Stretch" 		
                            	                          IsSynchronizedWithCurrentItem="True" 							 		
                                      	                  RowEditMode="AllCells" 							 		
                                       	   	              SelectionMode="Single" 
											              Grid.Column="0"
											              Grid.RowSpan="2"
                                                          ItemsSource="{Binding Path=ListaNegociosAlocados}">
                                    <Controls:SinacorDataGrid.ContextMenuTemplate>
                                        <DataTemplate>
                                            <StackPanel>
                                                <Controls:SinacorContextMenuItem Name="menuEnviarSolicitacao" 
                                                                                 Header="{DynamicResource Bovespa.Alocacao.Label.EnviarSolicitacaoCentral}"
                                                                                 Click="menuEnviarSolicitacao_Click" />
                                                <Controls:SinacorContextMenuItemSeparator/>
                                            </StackPanel>
                                        </DataTemplate>
                                    </Controls:SinacorDataGrid.ContextMenuTemplate>
                                    <Controls:SinacorDataGrid.Columns>
                                        <Controls:Column Name="ControleIF" Title="Bovespa.Alocacao.Label.ControleIF" DisplayMemberPath="NumeroControle"/>
                                        <Controls:Column Name="ISPBIF" Title="Bovespa.Alocacao.Label.IspbIf" DisplayMemberPath="CodigoISPB"/>
                                        <Controls:Column Name="CodIntermediario" Title="Bovespa.Alocacao.Label.CodIntermediario" DisplayMemberPath="CodigoIntermediario" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="Ativo" Title="Bovespa.Alocacao.Label.Ativo" DisplayMemberPath="Ativo"/>
                                        <Controls:Column Name="Pregao" Title="Bovespa.Alocacao.Label.Pregao" DisplayMemberPath="DataPregao" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="IdentMercado" Title="Bovespa.Alocacao.Label.IdentMercado" DisplayMemberPath="CodigoMercado"/>
                                        <Controls:Column Name="TipoLiquidacao" Title="Bovespa.Alocacao.Label.TipoLiquidacao" DisplayMemberPath="TipoLiquidacao"/>
                                        <Controls:Column Name="NOperNegociacao" Title="Bovespa.Alocacao.Label.NOperNegociacao" DisplayMemberPath="NumeroOperacaoNegociacao" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="NaturezaOperacao" Title="Bovespa.Alocacao.Label.NaturezaOperacao" DisplayMemberPath="NaturezaOperacao"/>
                                        <Controls:Column Name="QuantTotalNegocio" Title="Bovespa.Alocacao.Label.QuantTotalNegocio" DisplayMemberPath="QuantidadeTotalNegocio" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="QuantAlocada" Title="Bovespa.Alocacao.Label.QuantAlocada" DisplayMemberPath="QuantidadeTotalAlocada" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="OrigemAlocacao" Title="Bovespa.Alocacao.Label.OrigemAlocacao" DisplayMemberPath="OrigemAlocacao"/>
                                        <Controls:Column Name="DataHoraAlocacao" Title="Bovespa.Alocacao.Label.DataHoraAlocacao" DisplayMemberPath="DataHoraAlocacao" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="CodigoInvestidor" Title="Bovespa.Alocacao.Label.CodigoInvestidor" DisplayMemberPath="CodigoInvestidor" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="QuantAtivo" Title="Bovespa.Alocacao.Label.QuantAtivo" DisplayMemberPath="QuantidadeAtivo" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="Carteira" Title="Bovespa.Alocacao.Label.Carteira" DisplayMemberPath="CodigoCarteira" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="CodAgenteDirecionado" Title="Bovespa.Alocacao.Label.CodAgenteDirecionado" DisplayMemberPath="CodigoAgenteDirecionado" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="CodInvestidorDirecionado" Title="Bovespa.Alocacao.Label.CodInvestidorDirecionado" DisplayMemberPath="CodigoInvestidorDirecionado" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="IdentificadorArquivo" Title="Bovespa.Alocacao.Label.IdentificadorArquivo" DisplayMemberPath="IdentificadorArquivo"/>
                                        <Controls:Column Name="DataMovimento" Title="Bovespa.Alocacao.Label.DataMovimento" DisplayMemberPath="DataMovimento" HorizontalCellAlignment="Right"/>
                                    </Controls:SinacorDataGrid.Columns>
                                </Controls:SinacorDataGrid>

                                <Controls:SinacorDataGrid x:Name="dtgNegociosPendentes"
                                                          Grid.Column="1"
                            			                  HorizontalAlignment="Stretch" 		
                		         		                  VerticalAlignment="Stretch" 		
                		                                  IsSynchronizedWithCurrentItem="True" 							 		
                		                                  RowEditMode="AllCells" 							 		
                		                                  SelectionMode="Single" 
										                  Visibility="Hidden"
                                                          ItemsSource="{Binding Path=ListaNegociosPendentesAlocacao}">
                                    <Controls:SinacorDataGrid.ContextMenuTemplate>
                                        <DataTemplate>
                                            <StackPanel>
                                                <Controls:SinacorContextMenuItem Name="menuEnviarSolicitacaoPendentes" 
                                                                                 Header="{DynamicResource Bovespa.Alocacao.Label.EnviarSolicitacaoCentral}"
                                                                                 Click="menuEnviarSolicitacaoPendentes_Click" />
                                                <Controls:SinacorContextMenuItemSeparator/>
                                            </StackPanel>
                                        </DataTemplate>
                                    </Controls:SinacorDataGrid.ContextMenuTemplate>

                                    <Controls:SinacorDataGrid.Columns>
                                        <Controls:Column Name="ControleIF" Title="Bovespa.Alocacao.Label.ControleIF" DisplayMemberPath="NumeroControle"/>
                                        <Controls:Column Name="ISPBIF" Title="Bovespa.Alocacao.Label.IspbIf" DisplayMemberPath="CodigoISPB"/>
                                        <Controls:Column Name="CodIntermediario" Title="Bovespa.Alocacao.Label.CodIntermediario" DisplayMemberPath="CodigoIntermediario" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="Pregao" Title="Bovespa.Alocacao.Label.Pregao" DisplayMemberPath="DataPregao" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="IdentMercado" Title="Bovespa.Alocacao.Label.IdentMercado" DisplayMemberPath="CodigoMercado" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="TipoLiquidacao" Title="Bovespa.Alocacao.Label.TipoLiquidacao" DisplayMemberPath="TipoLiquidacao"/>
                                        <Controls:Column Name="Ativo" Title="Bovespa.Alocacao.Label.Ativo" DisplayMemberPath="Ativo"/>
                                        <Controls:Column Name="NOperNegociacao" Title="Bovespa.Alocacao.Label.NOperNegociacao" DisplayMemberPath="NumeroOperacaoNegociacao" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="NaturezaOperacao" Title="Bovespa.Alocacao.Label.NaturezaOperacao" DisplayMemberPath="NaturezaOperacao"/>
                                        <Controls:Column Name="QuantTotalNegocio" Title="Bovespa.Alocacao.Label.QuantTotalNegocio" DisplayMemberPath="QuantidadeTotalNegocio" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="QuantPendenteAlocacao" Title="Bovespa.Alocacao.Label.QuantPendenteAlocacao" DisplayMemberPath="QuantidadePendente" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="DataHoraLimiteAlocacao" Title="Bovespa.Alocacao.Label.DataHoraLimiteAlocacao" DisplayMemberPath="DataHoraLimite" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="CodigoTipoMercado" Title="Bovespa.Alocacao.Label.CodigoTipoMercado" DisplayMemberPath="CodigoTipoMercado" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="IdentificadorArquivo" Title="Bovespa.Alocacao.Label.IdentificadorArquivo" DisplayMemberPath="IdentificadorArquivo"/>
                                        <Controls:Column Name="DataMovimento" Title="Bovespa.Alocacao.Label.DataMovimento" DisplayMemberPath="DataMovimento" HorizontalCellAlignment="Right"/>
                                    </Controls:SinacorDataGrid.Columns>
                                </Controls:SinacorDataGrid>
                            </Grid>

                        </Controls:SinacorExpander>
                    </Grid>
                    <Grid Grid.Row="1" Grid.Column="1" Margin="4,0,0,0">

                        <Controls:SinacorExpander x:Name="ExpMensagens"
                                                  HorizontalAlignment="Stretch" 
											      VerticalAlignment="Stretch" 
											      Header="{DynamicResource Bovespa.Alocacao.Label.Mensagens}" 
											      Grid.Column="0" 
											      Margin="0,4,0,0" 
											      AllowExpand="False" 
											      IsExpanded="True">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="*"/>
                                    <RowDefinition Height="370" />
                                </Grid.RowDefinitions>
                                <Controls:SinacorDataGrid x:Name="dtgMensagens"
						                                  HorizontalAlignment="Stretch" 		
                		                                  VerticalAlignment="Stretch" 		
                		                                  IsSynchronizedWithCurrentItem="True" 							 		
                		                                  RowEditMode="AllCells" 							 		
                		                                  SelectionMode="Single" 		
                		                                  Margin="0,0,0,0"
						                                  Grid.Row="0"
                                                          ItemsSource="{Binding Path=UltimaSolicitacao.Mensagens}"
                                                          BufferedSelectionChanged="dtgMensagens_BufferedSelectionChanged"
                                                          ApplyingStyle="dtgMensagens_ApplyingStyle">

                                    <Controls:SinacorDataGrid.Columns>

                                        <Controls:Column Name="Situacao" Title="Bovespa.Alocacao.Label.Situacao" DisplayMemberPath="Situacao"/>
                                        <Controls:Column Name="NumeroTGP" Title="Bovespa.Alocacao.Label.NumeroTGP" DisplayMemberPath="NumeroTGP" HorizontalCellAlignment="Right"/>

                                    </Controls:SinacorDataGrid.Columns>
                                </Controls:SinacorDataGrid>

                                <Grid Margin="0,4,0,0" Grid.Row="1">
                                    <Controls:SinacorGroupBox Height="365" Width="300" HorizontalAlignment="Left" VerticalAlignment="Top" Header="{DynamicResource Bovespa.Alocacao.Label.Erros}">
                                        <Grid>
                                            <Controls:SinacorListBox x:Name="lstErros"
                                                                     Height="Auto" 
                                                                     Width="Auto" 
                                                                     HorizontalAlignment="Left" 
                                                                     VerticalAlignment="Top" 
                                                                     IsSynchronizedWithCurrentItem="True" 
                                                                     ScrollViewer.CanContentScroll="True" 
                                                                     ScrollViewer.VerticalScrollBarVisibility="Visible">
                                            </Controls:SinacorListBox>
                                        </Grid>
                                    </Controls:SinacorGroupBox>
                                </Grid>

                            </Grid>
                        </Controls:SinacorExpander>
                    </Grid>

                    <Grid Grid.Row="2" Grid.ColumnSpan="2">
                        <Ellipse Fill="{DynamicResource BrushGridRowBusiness02}" 
							 Stroke="#FF7F7F7F" 
							 HorizontalAlignment="Left" 
							 VerticalAlignment="Center" 
							 Width="10" 
							 Height="10"/>
                        <Controls:SinacorTextBlock HorizontalAlignment="Left" 
											       VerticalAlignment="Center" 
											       Foreground="{DynamicResource BrushGridRowBusiness02}" 
											       Text="{DynamicResource Bovespa.Alocacao.Label.GeradaNaoEnviada}" 
											       TextWrapping="Wrap" 
											       Margin="18,4,0,0" 
											       Width="130"/>
                        <Ellipse Fill="{DynamicResource BrushGridRowBusiness03}" 
							     Stroke="#FF7F7F7F" 
							     HorizontalAlignment="Left" 
							     Margin="152,0,0,0" 
							     Width="10" 
							     VerticalAlignment="Center" 
							     Height="10"/>
                        <Controls:SinacorTextBlock HorizontalAlignment="Left" 
											       VerticalAlignment="Center" 
											       Foreground="{DynamicResource BrushGridRowBusiness03}" 
											       Text="{DynamicResource Bovespa.Alocacao.Label.FilaAguardandoEnvio}" 
											       TextWrapping="Wrap" 
											       Margin="173,4,0,0" 
											       Width="160"/>
                        <Ellipse Fill="{DynamicResource BrushGridRowBusiness01}" 
							     Stroke="#FF7F7F7F" 
							     HorizontalAlignment="Left" 
							     Margin="350,0,0,0" 
							     Width="10" 
							     VerticalAlignment="Center" 
							     Height="10"/>
                        <Controls:SinacorTextBlock HorizontalAlignment="Left" 
								    			   VerticalAlignment="Center" 
									    		   Foreground="{DynamicResource BrushGridRowBusiness01}" 
										    	   Text="{DynamicResource Bovespa.Alocacao.Label.RequisicaoEnviada}" 
											       TextWrapping="Wrap" 
											       Margin="370,4,0,0" 
											       Width="120"/>
                        <Ellipse Fill="{DynamicResource BrushGridRowBusiness13}" 
							     Stroke="#FF7F7F7F" 
							     HorizontalAlignment="Left" 
							     Margin="495,0,0,0" 
							     Width="10" 
							     VerticalAlignment="Center" 
							     Height="10"/>
                        <Controls:SinacorTextBlock HorizontalAlignment="Left" 
			        						       VerticalAlignment="Center" 
					    						   Foreground="{DynamicResource BrushGridRowBusiness13}"
						    					   Text="{DynamicResource Bovespa.Alocacao.Label.AguardandoArquivo}" 
							    				   TextWrapping="Wrap" 
								    			   Margin="516,4,0,0" 
									    		   Width="120"/>
                        <Ellipse Fill="{DynamicResource BrushGridRowBusiness04}" 
							     Stroke="#FF7F7F7F" 
							     HorizontalAlignment="Left" 
							     Margin="641,0,0,0" 
    							 Width="10" 
	    						 VerticalAlignment="Center" 
		    					 Height="10"/>
                        <Controls:SinacorTextBlock HorizontalAlignment="Left" 
			    								   VerticalAlignment="Center" 
				    							   Foreground="{DynamicResource BrushGridRowBusiness04}" 
					    						   Text="{DynamicResource Bovespa.Alocacao.Label.ArquivoImportado}" 
						    					   TextWrapping="Wrap" 
							    				   Margin="660,4,0,0" 
								    			   Width="120"/>
                        <Ellipse Fill="{DynamicResource BrushGridRowBusiness06}" 
							     Stroke="#FF7F7F7F" 
    							 HorizontalAlignment="Left" 
	    						 Margin="787,0,0,0" 
		    					 Width="10" 
			    				 VerticalAlignment="Center" 
				    			 Height="10"/>
                        <Controls:SinacorTextBlock HorizontalAlignment="Left" 
						    					   VerticalAlignment="Center" 
					    						   Foreground="{DynamicResource BrushGridRowBusiness06}" 
							    				   Text="{DynamicResource Bovespa.Alocacao.Label.Erro}" 
								    			   TextWrapping="Wrap" 
									    		   Margin="806,4,0,0" 
										    	   Width="40"/>
                    </Grid>
                </Controls:SinacorExpanderContainer>
            </Grid>

        </Controls:SinacorTabItem>

        <!-- Alocação Direta Central Depositaria [ABA 3] -->
        <Controls:SinacorTabItem x:Name="TbiAlocacaoDiretaCentralDepositaria"
                                 Header="{DynamicResource Bovespa.Alocacao.Label.AlocacaoDiretaCentralDepositaria}"
                                 IsTabStop="False">
            <Grid>
                <Controls:SinacorExpanderContainer HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="0">

                    <Controls:SinacorExpanderContainer.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*" />
                    </Controls:SinacorExpanderContainer.RowDefinitions>

                    <Controls:SinacorExpander HorizontalAlignment="Stretch" 
											  VerticalAlignment="Stretch" 
											  Width="Auto" 
											  Header="{DynamicResource Bovespa.Alocacao.Label.Pesquisa}" 
											  IsExpanded="True" 
											  Grid.Row="0">
                        <Grid>
                            <Controls:SinacorCheckBox VerticalAlignment="Top" 
													  Content="{DynamicResource Bovespa.Alocacao.Label.SomenteDivergenciasSemCiencia}" 
													  Margin="0,0,0,0" 
													  Width="225" 
													  HorizontalAlignment="Left" 
													  TabIndex="4"
                                                      x:Name="chkSemCiencia"
                                                      IsChecked="True"/>

                            <Controls:SinacorButton   HorizontalAlignment="Left"
													  VerticalAlignment="Top"
													  Content="{DynamicResource Bovespa.Alocacao.Label.Pesquisar}"
													  Margin="229,0,0,0"
													  Width="100"
													  TabIndex="5"
													  IsDefault="True"
                                                      x:Name="btnPesquisarAlocacaoDireta"
                                                      Click="btnPesquisarAlocacaoDireta_Click"/>

                            <Controls:SinacorButton   HorizontalAlignment="Left"
													  VerticalAlignment="Top"
													  Content="{DynamicResource Bovespa.Alocacao.Label.NovaPesquisa}"
													  Margin="333,0,0,0"
													  Width="106"
													  TabIndex="6"
                                                      x:Name="btnNovaPesquisaAlocacaoDireta"
                                                      Click="btnNovaPesquisaAlocacaoDireta_Click"/>
                        </Grid>
                    </Controls:SinacorExpander>

                    <Grid Grid.Row="1">
                        <Controls:SinacorExpander HorizontalAlignment="Stretch"
												  VerticalAlignment="Stretch" 
												  Header="{DynamicResource Bovespa.Alocacao.Label.Divergencias}" 
												  Grid.Column="0" 
												  Margin="0,4,0,0" 
												  AllowExpand="False" 
												  IsExpanded="True">
                            <Grid>
                                <Controls:SinacorDataGrid x:Name="DtgDivergenciaAlocacao"
                                                          ItemsSource="{Binding Path=ListaDivergenciasAlocacao}"
                                                          HorizontalAlignment="Stretch"
                      		                              VerticalAlignment="Stretch"
                                                          IsSynchronizedWithCurrentItem="True"
                                                          EndingUpdate="DtgDivergenciaAlocacao_EndingUpdate"
                                                          CancelingUpdate="DtgDivergenciaAlocacao_CancelingUpdate"
                                                          BeingUpdated="DtgDivergenciaAlocacao_BeingUpdated"
                                                          PreviewKeyDown="DtgDivergenciaAlocacao_PreviewKeyDown"
                                                          BufferedSelectionChanged="DtgDivergenciaAlocacao_BufferedSelectionChanged"
                                                          ContextMenuOpening="DtgDivergenciaAlocacao_ContextMenuOpening"
                                                          AllowSaveAll="False"
                                                          AllowSave="False"
                                                          AutoEditOnSelectionChange="True"
                                                          AllowUndo="False"
                                                          AllowUndoAll="False"
                                                          AllowUndoLast="False">

                                    <Controls:SinacorDataGrid.ContextMenuTemplate>
                                        <DataTemplate>
                                            <StackPanel>
                                                <Controls:SinacorContextMenuItem x:Name="ctxMnuConfirmarTodas" Header="{DynamicResource Bovespa.Alocacao.Label.ConfirmarCienciaTodasDivergencias}" Click="ctxMnuConfirmarTodas_Click" Loaded="ctxMnuConfirmarTodas_Loaded"/>
                                                <Controls:SinacorContextMenuItem x:Name="ctxMnuSalvarAlteracoes" Header="{DynamicResource Bovespa.Alocacao.Label.SalvarAlteracoes}" Click="ctxMnuSalvarAlteracoes_Click"  Loaded="ctxMnuSalvarAlteracoes_Loaded"/>
                                            </StackPanel>
                                        </DataTemplate>
                                    </Controls:SinacorDataGrid.ContextMenuTemplate>

                                    <Controls:SinacorDataGrid.Columns>

                                        <Controls:Column Name="Ciente" Title="Bovespa.Alocacao.Label.Ciente" AllowUpdate="True">
                                            <Controls:Column.CellTemplate>
                                                <DataTemplate>
                                                    <Controls:SinacorCheckBox IsChecked="{Binding IndicadorCiencia, Mode=OneWay}"
                                                                                  IsEnabled="False"/>
                                                </DataTemplate>
                                            </Controls:Column.CellTemplate>

                                            <Controls:Column.CellUpdateTemplate>
                                                <DataTemplate>
                                                    <Controls:SinacorCheckBox x:Name="chkIndicadorCiencia"
                                                                                  IsChecked="{Binding IndicadorCiencia, Mode=OneWay}"
                                                                                  IsEnabled="{Binding HabilitaIndicadorCiencia}"
                                                                                  Checked="chkIndicadorCiencia_Checked"
                                                                                  Unchecked="chkIndicadorCiencia_Unchecked"/>
                                                </DataTemplate>
                                            </Controls:Column.CellUpdateTemplate>
                                        </Controls:Column>

                                        <Controls:Column Name="NControle" Title="Bovespa.Alocacao.Label.NControle" DisplayMemberPath="NumeroControle" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="Ativo" Title="Bovespa.Alocacao.Label.Ativo" DisplayMemberPath="Ativo"/>
                                        <Controls:Column Name="DataPregao" Title="Bovespa.Alocacao.Label.DataPregao" DisplayMemberPath="DataPregao" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="NaturezaOperacao" Title="Bovespa.Alocacao.Label.NaturezaOperacao" DisplayMemberPath="NaturezaOperacao"/>
                                        <Controls:Column Name="NNegociacao" Title="Bovespa.Alocacao.Label.NNegociacao" DisplayMemberPath="NumeroNegocio" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="CodigoCliente" Title="Bovespa.Alocacao.Label.CodigoCliente" DisplayMemberPath="CodigoCliente" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="CodigoClienteSinacor" Title="Bovespa.Alocacao.Label.CodigoClienteSinacor" DisplayMemberPath="CodigoClienteSinacor" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="QuantidadeCDepositaria" Title="Bovespa.Alocacao.Label.QuantidadeCDepositaria" DisplayMemberPath="QuantidadeNegocio" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="QuantidadeSinacor" Title="Bovespa.Alocacao.Label.QuantidadeSinacor" DisplayMemberPath="QuantidadeNegocioSinacor" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="CarteiraCDepositaria" Title="Bovespa.Alocacao.Label.CarteiraCDepositaria" DisplayMemberPath="CodigoCarteira" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="CarteiraSinacor" Title="Bovespa.Alocacao.Label.CarteiraSinacor" DisplayMemberPath="CodigoCarteiraSinacor" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="UsuarioInstitucionalCDepositaria" Title="Bovespa.Alocacao.Label.UsuarioInstitucionalCDepositaria" DisplayMemberPath="UsuarioInstitucional" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="UsuarioInstitucionalSinacor" Title="Bovespa.Alocacao.Label.UsuarioInstitucionalSinacor" DisplayMemberPath="UsuarioInstitucionalSinacor" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="ClienteInstitucionalCDepositaria" Title="Bovespa.Alocacao.Label.ClienteInstitucionalCDepositaria" DisplayMemberPath="ClienteInstitucional" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="ClienteInstitucionalSinacor" Title="Bovespa.Alocacao.Label.ClienteInstitucionalSinacor" DisplayMemberPath="ClienteInstitucionalSinacor" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="DataHoraDivergencia" Title="Bovespa.Alocacao.Label.DataHoraDivergencia" DisplayMemberPath="DataHoraIdentificacao" HorizontalCellAlignment="Right"/>

                                        <Controls:Column Name="DataHoraCiencia" Title="Bovespa.Alocacao.Label.DataHoraCiencia" DisplayMemberPath="DataHoraCiencia" AllowUpdate="True" HorizontalCellAlignment="Right">
                                            <Controls:Column.CellUpdateTemplate>
                                                <DataTemplate>
                                                    <Controls:SinacorTextBox Name="txtDataHoraCiencia"
                                                                                 IsRequired="False"
                                                                                 Text ="{Binding DataHoraCiencia}">
                                                    </Controls:SinacorTextBox>
                                                </DataTemplate>
                                            </Controls:Column.CellUpdateTemplate>
                                        </Controls:Column>

                                        <Controls:Column Name="CodigoUsuario" Title="Bovespa.Alocacao.Label.CodigoUsuario" DisplayMemberPath="CodigoUsuario" AllowUpdate="True" HorizontalCellAlignment="Right">
                                            <Controls:Column.CellUpdateTemplate>
                                                <DataTemplate>
                                                    <Controls:SinacorInt32TextBox Name="txtCodigoUsuario"
                                                                                      IsRequired="False"
                                                                                      Integers="5"
                                                                                      Value ="{Binding CodigoUsuario}">
                                                    </Controls:SinacorInt32TextBox>

                                                </DataTemplate>
                                            </Controls:Column.CellUpdateTemplate>
                                        </Controls:Column>

                                        <Controls:Column Name="Estacao" Title="Bovespa.Alocacao.Label.Estacao" DisplayMemberPath="Estacao" AllowUpdate="True">
                                            <Controls:Column.CellUpdateTemplate>
                                                <DataTemplate>
                                                    <Controls:SinacorTextBox Name="txtEstacao"
                                                                                 IsRequired="False"
                                                                                 Text ="{Binding Estacao}">
                                                    </Controls:SinacorTextBox>
                                                </DataTemplate>
                                            </Controls:Column.CellUpdateTemplate>
                                        </Controls:Column>

                                    </Controls:SinacorDataGrid.Columns>
                                </Controls:SinacorDataGrid>
                            </Grid>
                        </Controls:SinacorExpander>
                    </Grid>
                </Controls:SinacorExpanderContainer>
            </Grid>
        </Controls:SinacorTabItem>

        <!-- Conciliação Sinacor X Central Depositaria [ABA 4] -->
        <Controls:SinacorTabItem
                Name="CentralDepositariaTabItem"
                Header="{DynamicResource Bovespa.Alocacao.Label.ConciliacaoSinacorXCentralDepositaria}"
                GotFocus="CentralDepositariaTabItem_GotFocus" 
                IsTabStop="False">
            <Grid>
                <Controls:SinacorExpanderContainer HorizontalAlignment="Stretch" 
												   VerticalAlignment="Stretch" 
												   Grid.Row="0">
                    <Controls:SinacorExpanderContainer.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*" />
                    </Controls:SinacorExpanderContainer.RowDefinitions>
                    <Controls:SinacorExpander IsExpanded="True" Name="expPesquisa" Grid.Row="0">
                        <Grid>
                            <Controls:SinacorLabel HorizontalAlignment="Left" 
												   VerticalAlignment="Top" 
												   Content="{DynamicResource Bovespa.Alocacao.Label.Pregao}" 
												   Width="65" 
												   HorizontalContentAlignment="Left"/>
                            <Controls:SinacorComboBox IsSynchronizedWithCurrentItem="True"
                                                      HorizontalAlignment="Left" 
                                                      Name="cmbDataMovimento"
                                                      DisplayMemberPath="DataPregao"
                                                      SelectedValuePath="DataPregao"
                                                      ItemStringFormat="d" SelectionChanged="cmbDataMovimento_SelectionChanged"
                                                      SelectedValue="{Binding FiltroDivergenciaCentralDepositaria.DataPregao}"  
                                                      ItemsSource="{Binding ListaCalendarios}"
													  VerticalAlignment="Top" 
													  Margin="0,21,0,0" 
													  Width="113"
                                                      TabIndex="1"/>
                            <Controls:SinacorLabel HorizontalAlignment="Left" 
												   Content="{DynamicResource Bovespa.Alocacao.Label.Ativo}" 
												   Margin="117,0,0,0" 
												   Width="55" 
												   VerticalAlignment="Top" 
												   HorizontalContentAlignment="Left"/>
                            <Controls:SinacorTextBox VerticalAlignment="Top" 
                                                     Name="PesquisarAtivoTxt"
													 TextWrapping="NoWrap" 
													 Margin="117,21,0,0" 
													 TabIndex="2" 
                                                     Text="{Binding FiltroDivergenciaCentralDepositaria.Ativo}"
													 HorizontalAlignment="Left" 
													 Width="135" 
													 MaxLength="12"/>
                            <Controls:SinacorButton HorizontalAlignment="Left" 
								Margin="256,21,0,0" 
                                Name="PesquisarAtivoButton"
                                Click="PesquisarAtivoButton_Click"
								VerticalAlignment="Top" 
								TabIndex="3" 
								Icon="IconButtonSearch" 
								ToolTip="{DynamicResource Bovespa.Alocacao.Label.PesquisarAtivo}"/>
                            <Controls:SinacorLabel Content="{DynamicResource Bovespa.Alocacao.Label.Mercado}" 
												   Margin="282,0,0,0" 
												   HorizontalAlignment="Left" 
												   Width="72" 
												   HorizontalContentAlignment="Left"/>


                            <Controls:SinacorComboBox IsSynchronizedWithCurrentItem="True" 
                                                      Name="MercadoCombobox"
                                                      SelectedValue="{Binding FiltroDivergenciaCentralDepositaria.Mercado}"
													  HorizontalAlignment="Left" 
													  VerticalAlignment="Top" 
													  Margin="282,21,0,0" 
													  Width="202"
                                                      TabIndex="4"/>
                            <Controls:SinacorLabel HorizontalAlignment="Left" 
												   Margin="488,0,0,0" 
												   VerticalAlignment="Top" 
												   Content="{DynamicResource Bovespa.Alocacao.Label.Cliente}" 
												   Width="65" 
												   HorizontalContentAlignment="Left"/>
                            <Controls:SinacorTextBox VerticalAlignment="Top" 
                                                     Name="PesquisarCodigoClienteTxt" 
                                                     Text="{Binding FiltroDivergenciaCentralDepositaria.CodigoCliente}"
													 TextWrapping="NoWrap" 
													 Margin="488,21,0,0" 
													 TabIndex="5"
													 HorizontalAlignment="Left" 
													 Width="188" 
													 MaxLength="18"/>
                            <Controls:SinacorButton HorizontalAlignment="Left" 
                                                    Name="PesquisarClienteButton"
                                                    Click="PesquisarClienteButton_Click"
													Margin="680,21,0,0" 
													VerticalAlignment="Top" 
													TabIndex="6" 
													Icon="IconButtonClient" 
													ToolTip="{DynamicResource Bovespa.Alocacao.Label.PesquisarCliente}"/>
                            <Controls:SinacorLabel HorizontalAlignment="Left" 
												   Content="{DynamicResource Bovespa.Alocacao.Label.NNegocio}" 
												   Margin="0,53,0,0" 
												   Width="80" 
												   HorizontalContentAlignment="Left"/>
                            <Controls:SinacorInt32TextBox HorizontalAlignment="Left" 
                                                          Name="NNegocioTxt"
														  VerticalAlignment="Top"
														  TabIndex="7"
                                                          IsFormated="True"
                                                          Value="{Binding FiltroDivergenciaCentralDepositaria.NumeroNegocio}"
														  TextWrapping="NoWrap" 
														  Margin="0,74,0,0" 
														  Width="113" 
														  Integers="9"
                                                          MaxLength="9"/>
                            <Controls:SinacorGroupBox Header="{DynamicResource Bovespa.Alocacao.Label.NaturezaDaOperacao}"
                                                      Margin="117,44,0,0" Height="51" Width="367" HorizontalAlignment="Left" VerticalAlignment="Top">
                                <Grid HorizontalAlignment="Left" VerticalAlignment="Top">
                                    <Controls:SinacorRadioButton HorizontalAlignment="Left"
                                                                 Name="optNaturezaOperacaoCompraVenda"
                            			VerticalAlignment="Top" 
                            			TabIndex="8"
                            			Content="{DynamicResource Bovespa.Alocacao.Label.CompraVenda}" 
                            			IsChecked="True" 
                            			GroupName="CompraVenda" 
                            			Width="132"/>
                                    <Controls:SinacorRadioButton HorizontalAlignment="Left" 
                                        Name="optNaturezaOperacaoCompra"
                            			VerticalAlignment="Top" 
                            			TabIndex="9" 
                            			Content="{DynamicResource Bovespa.Alocacao.Label.Compra}" 
                            			GroupName="CompraVenda" Margin="145,0,0,0" Width="89"/>
                                    <Controls:SinacorRadioButton 
                            			VerticalAlignment="Top" 
                                        Name="optNaturezaOperacaoVenda"
                            			TabIndex="10" 
                            			Content="{DynamicResource Bovespa.Alocacao.Label.Venda}" 
                            			HorizontalAlignment="Left" 
                            			Width="81" 
                            			GroupName="CompraVenda" Margin="260,0,0,0"/>
                                </Grid>
                            </Controls:SinacorGroupBox>
                            <Controls:SinacorButton HorizontalAlignment="Left" 
												    VerticalAlignment="Top" 
                                                    Name="btnPesquisar"
                                                    Click="btnPesquisar_Click"
													Content="{DynamicResource Bovespa.Alocacao.Label.Pesquisar}" 
													Margin="488,74,0,0" 
													Width="105" 
													TabIndex="11" 
													IsDefault="True"/>
                            <Controls:SinacorButton HorizontalAlignment="Left" 
                                                    Name="btnNovaPesquisa"
                                                    Click="btnNovaPesquisa_Click"
													VerticalAlignment="Top" 
													Content="{DynamicResource Bovespa.Alocacao.Label.NovaPesquisa}" 
													Margin="597,74,0,0" 
													Width="106" 
													TabIndex="12"/>

                        </Grid>
                    </Controls:SinacorExpander>
                    <Grid Grid.Row="1">

                        <Controls:SinacorExpander HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Header="{DynamicResource Bovespa.Alocacao.Label.Divergencias}" Grid.Column="0" Margin="0,4,0,0" AllowExpand="False" IsExpanded="True">
                            <Grid>
                                <Controls:SinacorDataGrid HorizontalAlignment="Stretch"
                                                          Name="grdDivergenciaCentralDepositaria"
                                                          ItemsSource="{Binding ListaDivergenciasCentralDepositaria}"
                      		                              VerticalAlignment="Stretch"
                                	                      AllowBeginInsert="False" 							 		
                                    	                  AllowBeginUpdate="False"  							 		
                                        	              AllowCancelInsert="False" 							 		
                             	                          AllowCancelUpdate="False" 							 		
                                	                      AllowEndInsert="False" 							 		
                                    	                  AllowEndUpdate="False" 							 		
                                        	              AllowSave="False" 							 		
                               	    	                  AllowSaveAll="False" 							 		
                                	                      AllowUndo="False" 							 		
                                     	                  AllowUndoAll="False" 							 		
                                        	              AllowUndoLast="False"	
                                       	   	              SelectionMode="Extended"                                              
                                                          ApplyingStyle="grdDivergenciaCentralDepositaria_ApplyingStyle">
                                    <Controls:SinacorDataGrid.ContextMenuTemplate>
                                        <DataTemplate>
                                            <StackPanel Name="menuContextualDivergenciaCentralDepositaria"
                                                        Loaded="menuContextualDivergenciaCentralDepositaria_Loaded">
                                                <Controls:SinacorContextMenuItem Name="menuConciliarPregao"
                                                                                 Visibility="Visible"
                                                                                 Header="{DynamicResource Bovespa.Alocacao.Label.ConciliarPregao}"
                                                                                 Click="menuConciliarPregao_Click"
                                                                                 />
                                                <Controls:SinacorContextMenuItem Name="menuReenviarSelecionadas"
                                                                                 Visibility="Visible"
                                                                                 Header="{DynamicResource Bovespa.Alocacao.Label.ReenviarSelecionadas}"
                                                                                 Click="menuReenviarSelecionadas_Click"
                                                                                 />
                                                <Controls:SinacorContextMenuItem Name="menuReenviarTodas"
                                                                                 Visibility="Visible"
                                                                                 Header="{DynamicResource Bovespa.Alocacao.Label.ReenviarTodas}"
                                                                                 Click="menuReenviarTodas_Click"
                                                                                 />
                                            </StackPanel>
                                        </DataTemplate>
                                    </Controls:SinacorDataGrid.ContextMenuTemplate>
                                    <Controls:SinacorDataGrid.Columns>
                                        <Controls:Column Name="Origem" DisplayMemberPath="Origem" Title="Bovespa.Alocacao.Label.Origem"/>
                                        <Controls:Column Name="DataMovimento" DisplayMemberPath="DataMovimento" Title="Bovespa.Alocacao.Label.DataMovimento" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="DataPregao" DisplayMemberPath="DataPregao" Title="Bovespa.Alocacao.Label.DataPregao" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="Ativo" DisplayMemberPath="Ativo" Title="Bovespa.Alocacao.Label.Ativo"/>
                                        <Controls:Column Name="NaturezaOperacao" DisplayMemberPath="NaturezaOperacao" Title="Bovespa.Alocacao.Label.NaturezaOperacao"/>
                                        <Controls:Column Name="NNegocio" DisplayMemberPath="NumeroNegocio" Title="Bovespa.Alocacao.Label.NNegocio" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="Quantidade" DisplayMemberPath="QuantidadeNegocio" Title="Bovespa.Alocacao.Label.Quantidade" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="CodigoClienteCDepositaria" DisplayMemberPath="CodigoCliente" Title="Bovespa.Alocacao.Label.CodigoClienteCDepositaria" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="CarteiraCDepositaria" DisplayMemberPath="CodigoCarteira" Title="Bovespa.Alocacao.Label.CarteiraCDepositaria"/>
                                        <Controls:Column Name="UsuarioInstitucional" DisplayMemberPath="UsuarioInstitucional" Title="Bovespa.Alocacao.Label.UsuarioInstitucional"/>
                                        <Controls:Column Name="ClienteInstitucional" DisplayMemberPath="ClienteInstitucional" Title="Bovespa.Alocacao.Label.ClienteInstitucional"/>
                                        <Controls:Column Name="CodigoUsuario" DisplayMemberPath="CodigoUsuario" Title="Bovespa.Alocacao.Label.CodigoUsuario" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="DataHoraDivergencia" DisplayMemberPath="DataHoraIdentificacao" Title="Bovespa.Alocacao.Label.DataHoraDivergencia" HorizontalCellAlignment="Right"/>
                                        <Controls:Column Name="Estacao" DisplayMemberPath="Estacao" Title="Bovespa.Alocacao.Label.Estacao"/>
                                        <Controls:Column Name="DataHoraReenvio" Title="Bovespa.Alocacao.Label.DataHoraReenvio" DisplayMemberPath="DataHoraCiencia" HorizontalCellAlignment="Right"/>
                                    </Controls:SinacorDataGrid.Columns>
                                </Controls:SinacorDataGrid>
                            </Grid>
                        </Controls:SinacorExpander>
                    </Grid>
                </Controls:SinacorExpanderContainer>
            </Grid>
        </Controls:SinacorTabItem>

    </Controls:SinacorTabControl>
</Controls:SinacorWindow>
